package com.Service.Impl;

import com.Dao.paymentDao;
import com.Domain.payment;
import com.Service.paymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class paymentServiceImpl implements paymentService {
    @Autowired
    paymentDao paymentDao;

    @Override
    public int create(payment payment) {
        return paymentDao.insert(payment);
    }

    @Override
    public payment getPaymentById(Long id) {
        return paymentDao.selectById(id);
    }
}
